package initDB

import (
	"database/sql"
	_ "github.com/go-sql-driver/mysql"
)

var Db *sql.DB

func Init() {
	var err error
	Db, err = sql.Open("mysql", "root:qwer1234@tcp(127.0.0.1:3306)/hello")
	if err != nil {
	}
	Db.SetMaxOpenConns(10)
	Db.SetMaxIdleConns(10)
}
